﻿#region Using directives

using System;
using System.Collections.Generic;
using System.Text;

using Weazel.Badger.Vhdl.Expressions;

#endregion

namespace Weazel.Badger.Vhdl.Statements
{
	/// <summary>
	/// Represents a comment in a VHDL file. 
	/// </summary>
  public class Comment : SequentialStatement
  {
    private string comment;

    public Comment(string comment)
    {
      this.comment = comment;
    }

		public override void Resolve(Entity entity, Process process, StatementCollection statements)
    {
			// nothing
    }

    public override void Verify(ref List<VerifyMessage> messages)
    {
      // nothing
    }

    public override void Write(System.CodeDom.Compiler.IndentedTextWriter writer)
    {
      writer.WriteLine(string.Format("-- {0}", comment));
    }
  }
}
